import http from "@/utils/http";
import { relativeTimeThreshold } from "moment/moment";

/**
 *
 * @param {*} data
 * @returns
 * <车辆管理>
 * 车辆出入概况
 */
export const getCarIOInfoData = (data) => {
  return http({
    url: "v6.5/IOT/Lane/AllCarInOutStatistics",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <车辆管理>
 * 车辆通行记录
 */
export const getCarPassRecordData = (data) => {
  return http({
    url: "v6.5/IOT/Lane/CarInOutRecordList",
    method: "POST",
    data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <车辆管理>
 * 设备数量统计(道闸)
 */
export const getDeviceNumStatisticData = (data) => {
  return http({
    url: "v6.5/IOT/Lane/LaneCount",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <车辆管理>
 * 监控-列表（道闸）
 * 监控-详情（道闸）------需要传参（id）
 */
export const getSignoMonitorInfoData = (data) => {
  return http({
    url: "/v6.5/IOT/Lane",
    method: "GET",
    params: data,
  });
};

/**
 *
 * @param {*} data
 * @returns
 * <车辆管理>
 * 车辆黑名单列表
 */
export const getCarBlackListData = (data) => {
  return http({
    url: "v6.5/IOT/Lane/BlackCarList",
    method: "GET",
    params: data,
  });
};
